<template>
	<view class="page">
		<view type="userAvatarUrl" style="width: 100%; display:flex;">
			<image :src="userStore.avatar? userStore.avatar : '/static/img/hd.jpg'" class="hdimg" mode="aspectFill">
			</image>
		</view>
		<view class="list-card">
			<view class="card">
				<view class="item item-bottom-solid">
					<view class="center">
						<text>姓名：{{ userStore.realName }}</text>
					</view>
				</view>
			</view>
			<view class="card">
				<view class="item item-bottom-solid">
					<view class="center">
						<text>公司名称：宁波新乐电器有限公司</text>
					</view>
				</view>
			</view>
			<view class="card">
				<view class="item item-bottom-solid">
					<view class="center">
						<text>手机号：{{ userStore.phoneNumber? userStore.phoneNumber : '暂未设置' }}</text>
					</view>
					<view class="right flex-center">
						<!-- <u-icon class="icon" name="arrow-right"></u-icon> -->
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script setup>
	import {
		useUserStore
	} from '@/stores/userStore';
	const userStore = useUserStore();
	userStore.setUserInfo();
</script>

<style lang="scss" scoped>
	@import url('@/static/styles/userInfo.css');
</style>